home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectDraw / FullScreenDialog / readme.txt < prev    next >
Encoding:
Text File  |  2001-10-10  |  1.4 KB  |  43 lines

  1. //-----------------------------------------------------------------------------
  2. // 
  3. // Sample Name: FullScreenDialog Sample
  4. // 
  5. // Copyright (c) 1999-2001 Microsoft Corporation. All rights reserved.
  6. // 
  7. //-----------------------------------------------------------------------------
  8.  
  9.  
  10. Description
  11. ===========
  12.   FullScreenDialog demonstrates how to display a GDI dialog while using DirectDraw
  13.   in full-screen exclusive mode. 
  14.  
  15. Path
  16. ====
  17.   Source: DXSDK\Samples\Multimedia\DDraw\FullScreenDialog
  18.  
  19.   Executable: DXSDK\Samples\Multimedia\DDraw\Bin
  20.  
  21. User's Guide
  22. ============
  23.   FullScreenDialog requires no user input. Press the ESC key to quit the program.
  24.  
  25. Programming Notes
  26. =================
  27.   For details on how to setup a full-screen DirectDraw app, see the FullScreenMode 
  28.   sample. 
  29.   
  30.   If the display device supports DDCAPS2_CANRENDERWINDOWED then to make GDI write to 
  31.   a DirectDraw surface, call IDirectDraw::FlipToGDISurface, then create a clipper object
  32.   which GDI uses when drawing.  To display a dialog, then simply create and show it 
  33.   as normal.
  34.     
  35.   If the display device does not support DDCAPS2_CANRENDERWINDOWED (some secondary 
  36.   graphics cards are like this) then the card does not support FlipToGDISurface.  
  37.   So it is necessary instead to have GDI make a bitmap of the dialog to be drawn, 
  38.   then blt this bitmap to the back buffer.  However, this sample does not show how to
  39.   do this technique,
  40.   
  41.  
  42.  
  43.